//5：输出比10000大的10个质数
public class Task1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("input a number");
        int j, count = 0;
        for (int i = 10000; ; i++) {
            for (j = 2; j < i; j++) {
                if (i % j == 0) break;
            }
            if (i == j) {
                System.out.println(j + "\t");
                count++;
            }
            if (count == 10) {
                break;
            }
        }
    }
}